<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const info = {
        height: 300,
        width: 200,
        color: "red",
      };
      // color:xColor 属性:变量
      const color = "green";
      const { width, height, color: xColor } = info;
      console.log(width, height, color, xColor);
    </script>
  </body>
</html>
